#include "config.h"

#include "../include/itframework.h"
#include "../include/itlogger.h"

extern "C" __declspec(dllexport) ITConfig* GetInstance()
{
    return dynamic_cast<ITConfig*>(Config::GetInstance());
}

Config::Config()
{
    m_pFramework    = NULL;
    m_pLogger       = NULL;
    m_pConfig       = NULL;
}

Config::~Config()
{

}

TRESULT Config::Init()
{
    m_pFramework->GetLogger(&m_pLogger);
    m_pLogger->WriteLog("Config::Init()");
    return T_OK;
}

TRESULT Config::UnInit()
{
    qDebug() << "Config::UnInit()";
    return T_OK;
}

TRESULT Config::SetFramework(ITFramework *pFrm)
{
    m_pFramework = pFrm;
    return T_OK;
}
